package com.zhigh.project.security.jwt.authentication;

import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.context.support.ResourceBundleMessageSource;

public class JWTMessageSource extends ResourceBundleMessageSource {

    public JWTMessageSource() {
        setBasename("jwt.message");
    }

    public static MessageSourceAccessor getAccessor() {
        return new MessageSourceAccessor(new JWTMessageSource());
    }
}
